﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CheckList
{
    public partial class formWydrukiKomplet : Form
    {
        private Merchant m_merchant = new Merchant();

        public formWydrukiKomplet(string curentRaport)
        {
            InitializeComponent();

            // Instantiate the Merchant class.
            
            //this.WykonanieTableAdapter.Fill(this.MaszynowniaDataSet.Wykonanie, dateTimePicker1.Value, dateTimePicker2.Value, zakonczoneCheckBox1.Checked);
            switch (curentRaport)
            {
                case "Karta kontrolna zlecenia":
                   // reportViewerKomplet.LocalReport.ReportEmbeddedResource = "CheckList.raportKontroliJakosciNaKomplet.rdlc";
                    MessageBox.Show(curentRaport);
                    break;
 
            }
            reportViewerKomplet.RefreshReport();

        }

        private void formWydrukiKomplet_Load(object sender, EventArgs e)
        {
            // Bind the Product collection to the DataSource.
            //this.reportKompletBindingSource.DataSource = m_merchant.GetProducts();

            this.reportViewerKomplet.RefreshReport();
        }
    }
}
